package com.tuanzi.loan.business.repository.common.custom;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.tuanzi.loan.business.entity.common.CommProductChannel;
import com.tuanzi.loan.vo.request.channel.ChannelSearchRequest;
import com.tuanzi.loan.vo.response.channel.ChannelSearchResponse;

/**
 * @author Ray 2017/09/21
 */

public interface CommProductChannelRepositoryCustom {

	Page<ChannelSearchResponse> list(ChannelSearchRequest searchRequest, Pageable pageable);
	
	Integer checkRepeatChannelCode(CommProductChannel channel);

	Integer checkDuplicatedChannelCode(Integer startChannelCode, Integer endChannelCode);
}
